/**
 * Project: springyounger.lottery.dal
 * 
 * File Created at 2010-3-19
 * $Id$
 * 
 * Copyright 2009 Zjut Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Zjut Edu. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Zjut Edu.
 */
package com.springyounger.lottery.dal.dao;

import java.util.List;

import com.springyounger.lottery.dal.dataobject.User;

/**
 * UsersDao
 * 
 * @author springyounger
 */
public interface UserDao {
    List<User> getUsers(int pageIndex, int pageSize);

    User getUser(String username);

    User getUser(User user);

    User insertUser(User user);

    int updateUser(User user);

    int deleteUser(int userid);

    int getAllUserCount();

    int getLikeUserCount(String username);

    List<User> getLikeUserByName(int pageIndex, int pageSize, String username);
}
